﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl_Nav.ascx.cs"
    Inherits="CardLogistics.Web.Controls.WebUserControl_Nav" %>
<div class="place">
    <span style="margin: 0; padding:0; display: block;">&nbsp;&nbsp;&nbsp;当前位置：</span>
    <ul class="placeul" style="display: block;margin: 0;padding: 0;list-style: none;">
        <%=NavOne+NavTwo+NavDo %>
    </ul>
</div>
<script src="../js/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $(".click").click(function () {
                $(".tip").fadeIn(200);
            });

            $(".tiptop a").click(function () {
                $(".tip").fadeOut(200);
            });
            $(".cancel").click(function () {
                $(".tip").fadeOut(100);
            });

        });
    </script>
    <script>
        jQuery(document).ready(
            function () {
                $('#banner').mousedown(
                        function (event) {
                            var isMove = true;
                            var abs_x = event.pageX - $('div.tip').offset().left;
                            var abs_y = event.pageY - $('div.tip').offset().top;
                            $(document).mousemove(function (event) {
                                if (isMove) {
                                    var obj = $('div.tip');
                                    obj.css({ 'left': event.pageX - abs_x, 'top': event.pageY - abs_y });
                                }
                            }
                            ).mouseup(
                                    function () {
                                        isMove = false;
                                    }
                            );
                        }
                );
            }
    );  
    </script>
    <script language="javascript" type="text/javascript">
        function login(id) {
            $.ajax({
                url: 'HdAppro.ashx',
                type: 'POST',
                data: { 'uid': id },
                dataType: 'json',
                timeout: 50000,
                //contentType: 'application/json;charset=utf-8',  
                success: function (response) {
                    alert(response.message);

                    $(".sure").click(function () {
                        $(".tip").fadeOut(100);
                    });
                },
                error: function (err) {
                    alert("执行失败");
                }

            });
        }  
    </script>